package com.xiaoyy.sso.core.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统方法表
 * </p>
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_FUNCTION")
@ApiModel(value="SysFunction对象", description="系统方法表")
public class SysFunction extends Model<SysFunction> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "方法id")
    @TableId(value = "FUNC_ID", type = IdType.INPUT)
    private String funcId;

    @ApiModelProperty(value = "功能编号")
    @TableField("FUNC_CODE")
    private String funcCode;

    @ApiModelProperty(value = "功能类型")
    @TableField("FUNC_TYPE")
    private String funcType;

    @ApiModelProperty(value = "功能类型名称")
    @TableField("FUNC_NAME")
    private String funcName;

    @ApiModelProperty(value = "功能备注 摘要信息 使用arrayjson")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "功能标题")
    @TableField("FUNC_TITLE")
    private String funcTitle;

    @ApiModelProperty(value = "api")
    @TableField("API")
    private String api;

    @ApiModelProperty(value = "有效标志 0禁用 1启用")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "父功能id")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "同级序号")
    @TableField("ORDER_NO")
    private Integer orderNo;

    @ApiModelProperty(value = "级别")
    @TableField("RATE")
    private Integer rate;

    @ApiModelProperty(value = "节点类型 0 节点 1 叶子")
    @TableField("NODE_TYPE")
    private String nodeType;

    @ApiModelProperty(value = "是否公共方法 0 否 1 是")
    @TableField("PUBLIC_FLAG")
    private String publicFlag;

    @ApiModelProperty(value = "类路径")
    @TableField("CLASS_PATH")
    private String classPath;

    @ApiModelProperty(value = "请求方法")
    @TableField("METHOD")
    private String method;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_NAME")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_NAME")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除标志 0 正常 1 删除")
    @TableField("DEL")
    private String del;


    @Override
    protected Serializable pkVal() {
        return this.funcId;
    }

}
